/**
 * @author : niu niu
 * @version : 1.0.0
 * @date : 2023/4/7 18:08
 * YXYZ
 */

class X {
    Y y = new Y();
    public X (){
        System.out.println("X");
    }
}
class  Y {
    public Y(){
        System.out.println("Y");
    }
}
public class Z extends X{
    Y y = new Y();

    public Z(){
        System.out.println("Z");
    }

    public static void main(String[] args) {
        new Z();
    }
}
